package com.bishe.demo.modules.ticket.entity;

import com.bishe.demo.modules.common.entity.City;

import java.util.List;

public class Model {
    private int modelId;
    private String modelName;
    private String startPoint;
    private String endPoint;
    private List<City> citys;

    public Model(int modelId, String modelName, String startPoint, String endPoint, List<City> citys) {
        this.modelId = modelId;
        this.modelName = modelName;
        this.startPoint = startPoint;
        this.endPoint = endPoint;
        this.citys = citys;
    }

    public Model() {
    }

    public int getModelId() {
        return modelId;
    }

    public void setModelId(int modelId) {
        this.modelId = modelId;
    }

    public String getModelName() {
        return modelName;
    }

    public void setModelName(String modelName) {
        this.modelName = modelName;
    }

    public String getStartPoint() {
        return startPoint;
    }

    public void setStartPoint(String startPoint) {
        this.startPoint = startPoint;
    }

    public String getEndPoint() {
        return endPoint;
    }

    public void setEndPoint(String endPoint) {
        this.endPoint = endPoint;
    }

    public List<City> getCitys() {
        return citys;
    }

    public void setCitys(List<City> citys) {
        this.citys = citys;
    }

    @Override
    public String toString() {
        return "Model{" +
                "modelId=" + modelId +
                ", modelName='" + modelName + '\'' +
                ", startPoint='" + startPoint + '\'' +
                ", endPoint='" + endPoint + '\'' +
                ", citys=" + citys +
                '}';
    }
}
